package com.vint;

import java.awt.Graphics;
import java.awt.Image;
import java.util.ArrayList;

import javax.swing.ImageIcon;

public class HeroPlane {

	int locx = 240;
	int locy = 850;
	int HP = 100;
	int TP = 100;
	int type = 0;
	ImageIcon imageicon = null;
	Image image = null;
	public Image chooseimage(int type){
		
		switch (type) {
		case 1:
			ImageIcon imageicon = new ImageIcon(GameFrame.class.getResource("/2-1.png"));
			image = imageicon.getImage();
			break;
		case 2:
			imageicon = new ImageIcon(GameFrame.class.getResource("/2-2.png"));
			image = imageicon.getImage();
			break;
		case 3:
			imageicon = new ImageIcon(GameFrame.class.getResource("/2-3.png"));
			image = imageicon.getImage();
			break;
		case 4:
			imageicon = new ImageIcon(GameFrame.class.getResource("/2-4.png"));
			image = imageicon.getImage();
			break;
		case 5:
			imageicon = new ImageIcon(GameFrame.class.getResource("/2-5.png"));
			image = imageicon.getImage();
			break;
		case 6:
			imageicon = new ImageIcon(GameFrame.class.getResource("/2-6.png"));
			image = imageicon.getImage();
			break;
		default:
			imageicon = new ImageIcon(GameFrame.class.getResource("/2-3.png"));
			image = imageicon.getImage();
			break;
		}
		return image;
	}
	
	int speedx = 5;
	int speedy = 5;
	
	public void draw(Graphics g){
		Image img = chooseimage(type);
		g.drawImage(img, locx, locy, null);
	}
	public void move(){
	}
	public void fire(){
	}
	public boolean hit(ArrayList<BasicPlane> bp){
		boolean result = false;
		
		return result;
	}
	

}
